package com.canin.model;

import java.util.ArrayList;

import com.canin.util.CaninUtil;

public class Food
{
	private int id;
	private String foodName;
	private String foodBrand;
	private String description;
	private int dogBreedId;
	private String dogSize;
	private String dogAge;
	private String ingredient;
	private int beefIngredient;
	private int porkIngredient;
	private int chickenIngredient;
	private int fishIngredient;
	private int milkIngredient;
	private int wheyIngredient;
	private int eggIngredient;
	private int soybeanIngredient;
	private int cornIngredient;
	private double kilocalorie;
	private String currencyKilocalorie;
	private String foodType;
	private String taste;
    private String imageName;
	
	// Display
	private String breedOrSize;
	private String lifeSpan;
	private String type;
	private String newFoodBrand;
	private String newTaste;
	private String thaiDogBreedName;
	private String thaiDogSize;
	private String thaiCalType;
	// List for criteria to select
	private String selectBrand;
	private String selectType;
	private int selectBreedId;
	private String selectSize;
	private String selectLifeSpan;
	private String calType;
	
	// Size and Price
	private double size1;
	private String sizeType1;
	private int price1;
	private int delivery1;
	private double size2;
	private String sizeType2;
	private int price2;
	private int delivery2;
	private double size3;
	private String sizeType3;
	private int price3;
	private int delivery3;
	private double size4;
	private String sizeType4;
	private int price4;
	private int delivery4;
	private double size5;
	private String sizeType5;
	private int price5;
	private int delivery5;
	
	// Food FTN
	private int foodFTNType1;
	private int foodFTNSubType1;
	private String foodFTNSubTypeName1;
	private int foodFTNType2;
	private int foodFTNSubType2;
	private String foodFTNSubTypeName2;
	private int foodFTNType3;
	private int foodFTNSubType3;
	private String foodFTNSubTypeName3;
	private int foodFTNType4;
	private int foodFTNSubType4;
	private String foodFTNSubTypeName4;
	private int foodFTNType5;
	private int foodFTNSubType5;
	private String foodFTNSubTypeName5;
	
	private String foodNameShort;
	
	// To Show in Suggest Table
	private int cups;
	private int sub;
	private int kilograms;
	private double grams;
	
	private ArrayList<FoodFTN> foodFTNList;
	private ArrayList<DietWeek> dietWeekList;
	
	// Food Product
	private double sizeKg;
	private double price;
	private String currencyPrice;
	
	// Calc to show
	private double pricePerKilogram;
	private double feedDayCount;
	private double pricePerDay;
	private int amount;
	private double priceTotal;
	private double feedDayCountTotal;
	private String suggestPerDay;
	
	
	// show on order
	private double totalKilogram;
	private int totalDay;
	private double totalPrice;
	private String currencyTotalPrice;
	
	// 5 Flag
	private boolean breedFlag;
	private boolean ageFlag;
	private boolean sizeFlag;
	private boolean ftnFlag;
	private boolean typeFlag;
	
	public int getId()
	{
		return id;
	}
	public int getKilograms()
	{
		return kilograms;
	}
	public void setKilograms(int kilograms)
	{
		this.kilograms = kilograms;
	}
	public double getGrams()
	{
		return grams;
	}
	public void setGrams(double grams)
	{
		this.grams = grams;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getFoodName()
	{
		return foodName;
	}
	public void setFoodName(String foodName)
	{
		this.foodName = foodName;
		
		// set Food Short Name
		String foodShortName = foodName;
		if ( foodName.length() > 10 )
		{
			foodShortName = foodName.substring(0, 7) + "...";
		}
		setFoodNameShort(foodShortName);
		
	}
	public String getFoodBrand()
	{
		return foodBrand;
	}
	public void setFoodBrand(String foodBrand)
	{
		this.foodBrand = foodBrand;
	}
	public String getDescription()
	{
		return description;
	}
	public void setDescription(String description)
	{
		this.description = description;
	}
	public String getDogSize()
	{
		return dogSize;
	}
	public void setDogSize(String dogSize)
	{
		this.dogSize = dogSize;
	}
	public int getBeefIngredient()
	{
		return beefIngredient;
	}
	public void setBeefIngredient(int beefIngredient)
	{
		this.beefIngredient = beefIngredient;
	}
	public int getPorkIngredient()
	{
		return porkIngredient;
	}
	public void setPorkIngredient(int porkIngredient)
	{
		this.porkIngredient = porkIngredient;
	}
	public int getChickenIngredient()
	{
		return chickenIngredient;
	}
	public void setChickenIngredient(int chickenIngredient)
	{
		this.chickenIngredient = chickenIngredient;
	}
	public int getFishIngredient()
	{
		return fishIngredient;
	}
	public void setFishIngredient(int fishIngredient)
	{
		this.fishIngredient = fishIngredient;
	}
	public int getMilkIngredient()
	{
		return milkIngredient;
	}
	public void setMilkIngredient(int milkIngredient)
	{
		this.milkIngredient = milkIngredient;
	}
	public int getWheyIngredient()
	{
		return wheyIngredient;
	}
	public void setWheyIngredient(int wheyIngredient)
	{
		this.wheyIngredient = wheyIngredient;
	}
	public int getEggIngredient()
	{
		return eggIngredient;
	}
	public void setEggIngredient(int eggIngredient)
	{
		this.eggIngredient = eggIngredient;
	}
	public int getSoybeanIngredient()
	{
		return soybeanIngredient;
	}
	public void setSoybeanIngredient(int soybeanIngredient)
	{
		this.soybeanIngredient = soybeanIngredient;
	}
	public int getCornIngredient()
	{
		return cornIngredient;
	}
	public void setCornIngredient(int cornIngredient)
	{
		this.cornIngredient = cornIngredient;
	}
	public double getKilocalorie()
	{
		return kilocalorie;
	}
	public void setKilocalorie(double kilocalorie)
	{
		this.kilocalorie = kilocalorie;
	}
	public String getFoodType()
	{
		return foodType;
	}
	public void setFoodType(String foodType)
	{
		this.foodType = foodType;
	}
	public String getTaste()
	{
		return taste;
	}
	public void setTaste(String taste)
	{
		this.taste = taste;
	}
	public String getDogAge()
	{
		return dogAge;
	}
	public void setDogAge(String dogAge)
	{
		this.dogAge = dogAge;
	}
	public int getDogBreedId()
	{
		return dogBreedId;
	}
	public void setDogBreedId(int dogBreedId)
	{
		this.dogBreedId = dogBreedId;
	}
	public ArrayList<FoodFTN> getFoodFTNList()
	{
		return foodFTNList;
	}
	public void setFoodFTNList(ArrayList<FoodFTN> foodFTNList)
	{
		this.foodFTNList = foodFTNList;
	}
	public ArrayList<DietWeek> getDietWeekList()
	{
		return dietWeekList;
	}
	public void setDietWeekList(ArrayList<DietWeek> dietWeekList)
	{
		this.dietWeekList = dietWeekList;
	}
	public int getSub()
	{
		return sub;
	}
	public void setSub(int sub)
	{
		this.sub = sub;
	}
	public int getCups()
	{
		return cups;
	}
	public void setCups(int cups)
	{
		this.cups = cups;
	}
	public double getSizeKg()
	{
		return sizeKg;
	}
	public void setSizeKg(double sizeKg)
	{
		this.sizeKg = sizeKg;
	}
	public double getPrice()
	{
		return price;
	}
	public void setPrice(double price)
	{
		this.currencyPrice = CaninUtil.convertToConcurrency((int)price, 2);
		this.price = price;
	}
	public double getPricePerKilogram()
	{
		return pricePerKilogram;
	}
	public void setPricePerKilogram(double pricePerKilogram)
	{
		this.pricePerKilogram = pricePerKilogram;
	}
	public double getFeedDayCount()
	{
		return feedDayCount;
	}
	public void setFeedDayCount(double feedDayCount)
	{
		this.feedDayCount = feedDayCount;
	}
	public double getPricePerDay()
	{
		return pricePerDay;
	}
	public void setPricePerDay(double pricePerDay)
	{
		this.pricePerDay = pricePerDay;
	}
	public int getAmount()
	{
		return amount;
	}
	public void setAmount(int amount)
	{
		this.amount = amount;
	}
	public double getPriceTotal()
	{
		return priceTotal;
	}
	public void setPriceTotal(double priceTotal)
	{
		this.priceTotal = priceTotal;
	}
	public double getFeedDayCountTotal()
	{
		return feedDayCountTotal;
	}
	public void setFeedDayCountTotal(double feedDayCountTotal)
	{
		this.feedDayCountTotal = feedDayCountTotal;
	}
	public double getTotalKilogram()
	{
		return totalKilogram;
	}
	public void setTotalKilogram(double totalKilogram)
	{
		this.totalKilogram = totalKilogram;
	}
	public int getTotalDay()
	{
		return totalDay;
	}
	public void setTotalDay(int totalDay)
	{
		this.totalDay = totalDay;
	}
	public double getTotalPrice()
	{
		return totalPrice;
	}
	public void setTotalPrice(double totalPrice)
	{
		this.setCurrencyTotalPrice( CaninUtil.convertToConcurrency((int)totalPrice, 2) );
		this.totalPrice = totalPrice;
	}
	public boolean isBreedFlag()
	{
		return breedFlag;
	}
	public void setBreedFlag(boolean breedFlag)
	{
		this.breedFlag = breedFlag;
	}
	public boolean isAgeFlag()
	{
		return ageFlag;
	}
	public void setAgeFlag(boolean ageFlag)
	{
		this.ageFlag = ageFlag;
	}
	public boolean isSizeFlag()
	{
		return sizeFlag;
	}
	public void setSizeFlag(boolean sizeFlag)
	{
		this.sizeFlag = sizeFlag;
	}
	public boolean isFtnFlag()
	{
		return ftnFlag;
	}
	public void setFtnFlag(boolean ftnFlag)
	{
		this.ftnFlag = ftnFlag;
	}
	public boolean isTypeFlag()
	{
		return typeFlag;
	}
	public void setTypeFlag(boolean typeFlag)
	{
		this.typeFlag = typeFlag;
	}
	public String getFoodNameShort()
	{
		return foodNameShort;
	}
	public void setFoodNameShort(String foodNameShort)
	{
		this.foodNameShort = foodNameShort;
	}
	public String getBreedOrSize()
	{
		return breedOrSize;
	}
	public void setBreedOrSize(String breedOrSize)
	{
		this.breedOrSize = breedOrSize;
	}
	public String getLifeSpan()
	{
		return lifeSpan;
	}
	public void setLifeSpan(String lifeSpan)
	{
		this.lifeSpan = lifeSpan;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	public String getSelectBrand()
	{
		return selectBrand;
	}
	public void setSelectBrand(String selectBrand)
	{
		this.selectBrand = selectBrand;
	}
	public String getSelectType()
	{
		return selectType;
	}
	public void setSelectType(String selectType)
	{
		this.selectType = selectType;
	}
	public int getSelectBreedId()
	{
		return selectBreedId;
	}
	public void setSelectBreedId(int selectBreedId)
	{
		this.selectBreedId = selectBreedId;
	}
	public String getSelectSize()
	{
		return selectSize;
	}
	public void setSelectSize(String selectSize)
	{
		this.selectSize = selectSize;
	}
	public String getSelectLifeSpan()
	{
		return selectLifeSpan;
	}
	public void setSelectLifeSpan(String selectLifeSpan)
	{
		this.selectLifeSpan = selectLifeSpan;
	}
	public String getIngredient()
	{
		return ingredient;
	}
	public void setIngredient(String ingredient)
	{
		this.ingredient = ingredient;
	}
	public String getNewFoodBrand()
	{
		return newFoodBrand;
	}
	public void setNewFoodBrand(String newFoodBrand)
	{
		this.newFoodBrand = newFoodBrand;
	}
	public String getNewTaste()
	{
		return newTaste;
	}
	public void setNewTaste(String newTaste)
	{
		this.newTaste = newTaste;
	}
	public double getSize1()
	{
		return size1;
	}
	public void setSize1(double size1)
	{
		this.size1 = size1;
	}
	public String getSizeType1()
	{
		return sizeType1;
	}
	public void setSizeType1(String sizeType1)
	{
		this.sizeType1 = sizeType1;
	}
	public double getSize2()
	{
		return size2;
	}
	public void setSize2(double size2)
	{
		this.size2 = size2;
	}
	public String getSizeType2()
	{
		return sizeType2;
	}
	public void setSizeType2(String sizeType2)
	{
		this.sizeType2 = sizeType2;
	}
	public double getSize3()
	{
		return size3;
	}
	public void setSize3(double size3)
	{
		this.size3 = size3;
	}
	public String getSizeType3()
	{
		return sizeType3;
	}
	public void setSizeType3(String sizeType3)
	{
		this.sizeType3 = sizeType3;
	}
	public double getSize4()
	{
		return size4;
	}
	public void setSize4(double size4)
	{
		this.size4 = size4;
	}
	public String getSizeType4()
	{
		return sizeType4;
	}
	public void setSizeType4(String sizeType4)
	{
		this.sizeType4 = sizeType4;
	}
	public double getSize5()
	{
		return size5;
	}
	public void setSize5(double size5)
	{
		this.size5 = size5;
	}
	public String getSizeType5()
	{
		return sizeType5;
	}
	public void setSizeType5(String sizeType5)
	{
		this.sizeType5 = sizeType5;
	}
	public int getFoodFTNType1()
	{
		return foodFTNType1;
	}
	public void setFoodFTNType1(int foodFTNType1)
	{
		this.foodFTNType1 = foodFTNType1;
	}
	public int getFoodFTNSubType1()
	{
		return foodFTNSubType1;
	}
	public void setFoodFTNSubType1(int foodFTNSubType1)
	{
		this.foodFTNSubType1 = foodFTNSubType1;
	}
	public String getFoodFTNSubTypeName1()
	{
		return foodFTNSubTypeName1;
	}
	public void setFoodFTNSubTypeName1(String foodFTNSubTypeName1)
	{
		this.foodFTNSubTypeName1 = foodFTNSubTypeName1;
	}
	public int getFoodFTNType2()
	{
		return foodFTNType2;
	}
	public void setFoodFTNType2(int foodFTNType2)
	{
		this.foodFTNType2 = foodFTNType2;
	}
	public int getFoodFTNSubType2()
	{
		return foodFTNSubType2;
	}
	public void setFoodFTNSubType2(int foodFTNSubType2)
	{
		this.foodFTNSubType2 = foodFTNSubType2;
	}
	public String getFoodFTNSubTypeName2()
	{
		return foodFTNSubTypeName2;
	}
	public void setFoodFTNSubTypeName2(String foodFTNSubTypeName2)
	{
		this.foodFTNSubTypeName2 = foodFTNSubTypeName2;
	}
	public int getFoodFTNType3()
	{
		return foodFTNType3;
	}
	public void setFoodFTNType3(int foodFTNType3)
	{
		this.foodFTNType3 = foodFTNType3;
	}
	public int getFoodFTNSubType3()
	{
		return foodFTNSubType3;
	}
	public void setFoodFTNSubType3(int foodFTNSubType3)
	{
		this.foodFTNSubType3 = foodFTNSubType3;
	}
	public String getFoodFTNSubTypeName3()
	{
		return foodFTNSubTypeName3;
	}
	public void setFoodFTNSubTypeName3(String foodFTNSubTypeName3)
	{
		this.foodFTNSubTypeName3 = foodFTNSubTypeName3;
	}
	public int getFoodFTNType4()
	{
		return foodFTNType4;
	}
	public void setFoodFTNType4(int foodFTNType4)
	{
		this.foodFTNType4 = foodFTNType4;
	}
	public int getFoodFTNSubType4()
	{
		return foodFTNSubType4;
	}
	public void setFoodFTNSubType4(int foodFTNSubType4)
	{
		this.foodFTNSubType4 = foodFTNSubType4;
	}
	public String getFoodFTNSubTypeName4()
	{
		return foodFTNSubTypeName4;
	}
	public void setFoodFTNSubTypeName4(String foodFTNSubTypeName4)
	{
		this.foodFTNSubTypeName4 = foodFTNSubTypeName4;
	}
	public int getFoodFTNType5()
	{
		return foodFTNType5;
	}
	public void setFoodFTNType5(int foodFTNType5)
	{
		this.foodFTNType5 = foodFTNType5;
	}
	public int getFoodFTNSubType5()
	{
		return foodFTNSubType5;
	}
	public void setFoodFTNSubType5(int foodFTNSubType5)
	{
		this.foodFTNSubType5 = foodFTNSubType5;
	}
	public String getFoodFTNSubTypeName5()
	{
		return foodFTNSubTypeName5;
	}
	public void setFoodFTNSubTypeName5(String foodFTNSubTypeName5)
	{
		this.foodFTNSubTypeName5 = foodFTNSubTypeName5;
	}
	public String getCalType()
	{
		return calType;
	}
	public void setCalType(String calType)
	{
		this.calType = calType;
	}
	public String getThaiDogBreedName()
	{
		return thaiDogBreedName;
	}
	public void setThaiDogBreedName(String thaiDogBreedName)
	{
		this.thaiDogBreedName = thaiDogBreedName;
	}
	public String getThaiCalType()
	{
		return thaiCalType;
	}
	public void setThaiCalType(String thaiCalType)
	{
		this.thaiCalType = thaiCalType;
	}
	public String getThaiDogSize()
	{
		return thaiDogSize;
	}
	public void setThaiDogSize(String thaiDogSize)
	{
		this.thaiDogSize = thaiDogSize;
	}
	public int getPrice1()
	{
		return price1;
	}
	public void setPrice1(int price1)
	{
		this.price1 = price1;
	}
	public int getDelivery1()
	{
		return delivery1;
	}
	public void setDelivery1(int delivery1)
	{
		this.delivery1 = delivery1;
	}
	public int getPrice2()
	{
		return price2;
	}
	public void setPrice2(int price2)
	{
		this.price2 = price2;
	}
	public int getDelivery2()
	{
		return delivery2;
	}
	public void setDelivery2(int delivery2)
	{
		this.delivery2 = delivery2;
	}
	public int getPrice3()
	{
		return price3;
	}
	public void setPrice3(int price3)
	{
		this.price3 = price3;
	}
	public int getDelivery3()
	{
		return delivery3;
	}
	public void setDelivery3(int delivery3)
	{
		this.delivery3 = delivery3;
	}
	public int getPrice4()
	{
		return price4;
	}
	public void setPrice4(int price4)
	{
		this.price4 = price4;
	}
	public int getDelivery4()
	{
		return delivery4;
	}
	public void setDelivery4(int delivery4)
	{
		this.delivery4 = delivery4;
	}
	public int getPrice5()
	{
		return price5;
	}
	public void setPrice5(int price5)
	{
		this.price5 = price5;
	}
	public int getDelivery5()
	{
		return delivery5;
	}
	public void setDelivery5(int delivery5)
	{
		this.delivery5 = delivery5;
	}
	public String getSuggestPerDay()
	{
		return suggestPerDay;
	}
	public void setSuggestPerDay(String suggestPerDay)
	{
		this.suggestPerDay = suggestPerDay;
	}
	public String getCurrencyPrice()
	{
		return currencyPrice;
	}
	public void setCurrencyPrice(String currencyPrice)
	{
		this.currencyPrice = currencyPrice;
	}
	public String getCurrencyKilocalorie()
	{
		return currencyKilocalorie;
	}
	public void setCurrencyKilocalorie(String currencyKilocalorie)
	{
		this.currencyKilocalorie = currencyKilocalorie;
	}
	public String getCurrencyTotalPrice()
	{
		return currencyTotalPrice;
	}
	public void setCurrencyTotalPrice(String currencyTotalPrice)
	{
		this.currencyTotalPrice = currencyTotalPrice;
	}
	public String getImageName()
	{
		return imageName;
	}
	public void setImageName(String imageName)
	{
		this.imageName = imageName;
	}

	
}
